package com.naiterui.ehp.bs.emr.entity.mysql;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 医生病历设置
 *
 * @author yangfuya
 * @since 2022/4/11
 */
@Data
@Builder
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "dr_medical_record_setting")
public class EmrMedicalRecordSetting implements Serializable {
    private static final long serialVersionUID = -5807263087165848519L;

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;

    /**
     * 医生ID
     */
    @Column(name = "doctor_id")
    private Long doctorId;

    /**
     * 类型：1.主诉 2.现病史 3.既往史 4.过敏史 5.家族史 6.月经婚育史 7.检查指标 8.诊断 9.治疗意见
     */
    @Column(name = "type")
    private Integer type;

    /**
     * 名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 是否启用：1.是 0.否
     */
    @Column(name = "enabled")
    private Integer enabled;

    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 创建者
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 修改时间
     */
    @Column(name = "changed_at")
    private Date changedAt;

    /**
     * 修改人
     */
    @Column(name = "changed_by")
    private String changedBy;

    @Version
    @Column(name = "version")
    private Integer version;

}
